package com.caping.cgi.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.caping.campaign.inter.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: campaign
 * @description: ${description}
 * @author: jiemin
 * @create: 2018-12-10 11:10
 **/

@RestController
public class HelloController {


    @Reference(version = "1.0.0")
    HelloService helloService;


    @RequestMapping("/hello")
    public Object sayHello(String name) {
        return helloService.sayHello(name);
    }


}
